﻿using Autodesk.Windows;
using HaierCADplug_in.View;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Windows.Media.Imaging;

namespace HaierCADplug_in.ViewModel
{
    public static class RibbonButtonInfo
    {
        //用户按钮
        private static RibbonButtonEX userBtn;
        public static RibbonButtonEX UserBtn
        {
            get
            {
                userBtn = new RibbonButtonEX("用户信息");
                userBtn.SetImage("用户.png");
                //userBtn.IsEnabled = true;

                //按钮提示信息
                RibbonToolTip toolTip = new RibbonToolTip();
                toolTip.Title = "";
                toolTip.Content = "";
                toolTip.Command = "";
                toolTip.ExpandedContent = "使用";

                //添加提示信息
                userBtn.ToolTip = toolTip;
                //给窗体名
                userBtn.CommandHandler = new UserRibbonCommandHandler();
                return userBtn;
            }
            set => userBtn = value;
        }


        //图库按钮
        private static RibbonButtonEX figureBtn;
        public static RibbonButtonEX FigureBtn
        {
            get
            {
                figureBtn = new RibbonButtonEX("图库");
                figureBtn.SetImage("图库.png");

                //按钮提示信息
                RibbonToolTip toolTip = new RibbonToolTip();
                toolTip.Title = "";
                toolTip.Content = "";
                toolTip.Command = "";
                toolTip.ExpandedContent = "使用";

                //添加
                userBtn.ToolTip = toolTip;
                //给窗体名
                figureBtn.CommandHandler = new FigureRibbonCommandHandler();
                return figureBtn;
            }
            set => figureBtn = value;
        }
        //收藏按钮
        private static RibbonButtonEX collectBtn;
        public static RibbonButtonEX CollectBtn
        {
            get
            {
                collectBtn = new RibbonButtonEX("收藏");
                collectBtn.SetImage("收藏.png");

                //按钮提示信息
                RibbonToolTip toolTip = new RibbonToolTip();
                toolTip.Title = "";
                toolTip.Content = "";
                toolTip.Command = "";
                toolTip.ExpandedContent = "使用";

                //添加
                userBtn.ToolTip = toolTip;
                //给窗体名
                collectBtn.CommandHandler = new CollectBtnRibbonCommandHandler();
                return collectBtn;
            }
            set => collectBtn = value;
        }

        //设置按钮
        private static RibbonButtonEX settingsBtn;
        public static RibbonButtonEX SettingsBtn
        {
            get
            {
                settingsBtn = new RibbonButtonEX("设置");
                settingsBtn.SetImage("设置.png");

                //按钮提示信息
                RibbonToolTip toolTip = new RibbonToolTip();
                toolTip.Title = "";
                toolTip.Content = "";
                toolTip.Command = "";
                toolTip.ExpandedContent = "使用";

                //添加
                settingsBtn.ToolTip = toolTip;
                //给窗体名
                settingsBtn.CommandHandler = new SettingsRibbonCommandHandler();
                return settingsBtn;
            }
            set => settingsBtn = value;
        }
        //设置按钮
        private static RibbonButtonEX testBtn;
        public static RibbonButtonEX TestBtn
        {
            get
            {
                testBtn = new RibbonButtonEX("测试");
                testBtn.SetImage("测试.png");

                //按钮提示信息
                RibbonToolTip toolTip = new RibbonToolTip();
                toolTip.Title = "";
                toolTip.Content = "";
                toolTip.Command = "";
                toolTip.ExpandedContent = "使用";

                //添加
                testBtn.ToolTip = toolTip;
                //给窗体名
                testBtn.CommandHandler = new TestRibbonCommandHandler();
                return testBtn;
            }
            set => testBtn = value;
        }
    }
}
